package xyz.jcat.sat.admin.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.jcat.common.web.Resp;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.HeaderParam;

@RestController
public class HelloController {

    @GetMapping("/")
    public Resp index(HttpServletRequest request, @HeaderParam("test") String test) {

        return Resp.ok("Welcome sca admin!");
    }
}
